inherited fmStockInfo: TfmStockInfo
  Caption = #37319#36141#21333#36164#26009
  ClientHeight = 652
  ClientWidth = 892
  ExplicitWidth = 900
  ExplicitHeight = 686
  PixelsPerInch = 96
  TextHeight = 13
  inherited lcMain: TdxLayoutControl
    Width = 692
    Height = 606
    ExplicitWidth = 692
    ExplicitHeight = 606
    inherited lblCreateDate: TRzDBLabel
      Left = 791
      Top = 519
      DataField = 'ds_createdate'
      DataSource = dsBase
      ExplicitLeft = 791
      ExplicitTop = 519
    end
    inherited lblCreateStaff: TRzDBLabel
      Left = 791
      Top = 499
      DataField = 'ds_createstaff'
      DataSource = dsBase
      ExplicitLeft = 791
      ExplicitTop = 499
    end
    object cxDBLabel1: TRzDBLabel [2]
      Left = 383
      Top = 519
      Width = 80
      Height = 17
      Color = clWindow
      ParentColor = False
      BorderOuter = fsFlat
      BorderSides = [sdBottom]
      BorderHighlight = clWhite
      BorderShadow = 9280933
      FlatColor = 5607865
      FlatColorAdjustment = 0
      DataField = 'ds_checkdate'
      DataSource = dsBase
    end
    object cxDBLabel2: TRzDBLabel [3]
      Left = 383
      Top = 499
      Width = 80
      Height = 17
      Color = clWindow
      ParentColor = False
      BorderOuter = fsFlat
      BorderSides = [sdBottom]
      BorderHighlight = clWhite
      BorderShadow = 9280933
      FlatColor = 5607865
      FlatColorAdjustment = 0
      DataField = 'ds_checkstaff'
      DataSource = dsBase
    end
    inherited lblModifyDate: TRzDBLabel
      Left = 655
      Top = 519
      DataField = 'ds_modifydate'
      ExplicitLeft = 655
      ExplicitTop = 519
    end
    inherited lblModifyStaff: TRzDBLabel
      Left = 655
      Top = 499
      DataField = 'ds_modifystaff'
      ExplicitLeft = 655
      ExplicitTop = 499
    end
    object RzDBLabel1: TRzDBLabel [6]
      Left = 519
      Top = 499
      Width = 80
      Height = 17
      Color = clWindow
      ParentColor = False
      BorderOuter = fsFlat
      BorderSides = [sdBottom]
      BorderHighlight = clWhite
      BorderShadow = 9280933
      FlatColor = 5607865
      FlatColorAdjustment = 0
      DataField = 'ds_state'
      DataSource = dsBase
    end
    object edtFactory: TRzDBEdit [7]
      Left = 78
      Top = 52
      Width = 60
      Height = 21
      DataSource = dsBase
      DataField = 'ds_fno'
      ReadOnly = True
      Color = clInfoBk
      FocusColor = 13824245
      FrameColor = 5607865
      FrameHotStyle = fsGroove
      FrameSides = [sdBottom]
      FrameVisible = True
      FramingPreference = fpCustomFraming
      TabOrder = 1
      OnDblClick = edtFactoryDblClick
    end
    object cxDBTextEdit4: TRzDBEdit [8]
      Left = 141
      Top = 52
      Width = 57
      Height = 21
      DataSource = dsBase
      DataField = 'ds_fsimpname'
      ReadOnly = True
      Color = clInfoBk
      FocusColor = 13824245
      FrameColor = 5607865
      FrameHotStyle = fsGroove
      FrameSides = [sdBottom]
      FrameVisible = True
      FramingPreference = fpCustomFraming
      TabOrder = 2
    end
    object cbxStaff: TRzDBComboBox [9]
      Left = 471
      Top = 76
      Width = 121
      Height = 21
      DataField = 'ds_staff'
      DataSource = dsBase
      Ctl3D = False
      FlatButtonColor = 9229030
      FlatButtons = True
      FocusColor = 13824245
      FrameColor = 5607865
      FrameHotStyle = fsGroove
      FrameSides = [sdBottom]
      FrameVisible = True
      FramingPreference = fpCustomFraming
      ItemHeight = 13
      ParentCtl3D = False
      TabOrder = 14
      OnDropDown = cbxStaffDropDown
    end
    object cbxStockStaff: TRzDBComboBox [10]
      Left = 471
      Top = 52
      Width = 121
      Height = 21
      DataField = 'ds_stockstaff'
      DataSource = dsBase
      Ctl3D = False
      FlatButtonColor = 9229030
      FlatButtons = True
      FocusColor = 13824245
      FrameColor = 5607865
      FrameHotStyle = fsGroove
      FrameSides = [sdBottom]
      FrameVisible = True
      FramingPreference = fpCustomFraming
      ItemHeight = 13
      ParentCtl3D = False
      TabOrder = 13
      OnDropDown = cbxStockStaffDropDown
    end
    object cbxCurrency: TRzDBComboBox [11]
      Left = 286
      Top = 76
      Width = 60
      Height = 21
      DataField = 'ds_mcode'
      DataSource = dsBase
      Ctl3D = False
      FlatButtonColor = 9229030
      FlatButtons = True
      FocusColor = 13824245
      FrameColor = 5607865
      FrameHotStyle = fsGroove
      FrameSides = [sdBottom]
      FrameVisible = True
      FramingPreference = fpCustomFraming
      ItemHeight = 13
      ParentCtl3D = False
      TabOrder = 8
      OnChange = cbxCurrencyPropertiesChange
      OnDropDown = cbxCurrencyDropDown
    end
    object cxDBTextEdit7: TRzDBEdit [12]
      Left = 349
      Top = 76
      Width = 58
      Height = 21
      DataSource = dsBase
      DataField = 'ds_rate'
      ReadOnly = True
      Color = clInfoBk
      FocusColor = 13824245
      FrameColor = 5607865
      FrameHotStyle = fsGroove
      FrameSides = [sdBottom]
      FrameVisible = True
      FramingPreference = fpCustomFraming
      TabOrder = 9
    end
    object cxDBMemo1: TRzDBMemo [13]
      Left = 286
      Top = 124
      Width = 121
      Height = 21
      DataField = 'ds_remark'
      DataSource = dsBase
      TabOrder = 11
      OnEnter = MemoEnter
      OnExit = MemoExit
      FocusColor = 13824245
      FrameColor = 5607865
      FrameHotStyle = fsGroove
      FrameSides = [sdBottom]
      FrameVisible = True
      FramingPreference = fpCustomFraming
    end
    object cxDBMemo2: TRzDBMemo [14]
      Left = 668
      Top = 124
      Width = 120
      Height = 21
      DataField = 'ds_cont'
      DataSource = dsBase
      TabOrder = 21
      OnEnter = MemoEnter
      OnExit = MemoExit
      FocusColor = 13824245
      FrameColor = 5607865
      FrameHotStyle = fsGroove
      FrameSides = [sdBottom]
      FrameVisible = True
      FramingPreference = fpCustomFraming
    end
    object cxDBDateEdit3: TRzDBDateTimeEdit [15]
      Left = 78
      Top = 442
      Width = 120
      Height = 21
      DataSource = dsPrepay
      DataField = 'dsp_prepaydate'
      FocusColor = 13824245
      FrameColor = 5607865
      FrameHotStyle = fsGroove
      FrameSides = [sdBottom]
      FrameVisible = True
      FramingPreference = fpCustomFraming
      TabOrder = 23
      EditType = etDate
      FlatButtonColor = 9229030
      FlatButtons = True
    end
    object cxDBComboBox4: TRzDBComboBox [16]
      Left = 482
      Top = 442
      Width = 122
      Height = 21
      DataField = 'dsp_prepaystaff'
      DataSource = dsPrepay
      Ctl3D = False
      FlatButtonColor = 9229030
      FlatButtons = True
      FocusColor = 13824245
      FrameColor = 5607865
      FrameHotStyle = fsGroove
      FrameSides = [sdBottom]
      FrameVisible = True
      FramingPreference = fpCustomFraming
      ItemHeight = 13
      ParentCtl3D = False
      TabOrder = 29
      OnDropDown = cxDBComboBox4DropDown
    end
    object cxDBComboBox5: TRzDBComboBox [17]
      Left = 286
      Top = 466
      Width = 60
      Height = 21
      DataField = 'dsp_prepaybankno'
      DataSource = dsPrepay
      Ctl3D = False
      FlatButtonColor = 9229030
      FlatButtons = True
      FocusColor = 13824245
      FrameColor = 5607865
      FrameHotStyle = fsGroove
      FrameSides = [sdBottom]
      FrameVisible = True
      FramingPreference = fpCustomFraming
      ItemHeight = 13
      ParentCtl3D = False
      TabOrder = 27
    end
    object cxDBTextEdit10: TRzDBEdit [18]
      Left = 349
      Top = 466
      Width = 57
      Height = 21
      DataSource = dsPrepay
      DataField = 'dsp_prepaybank'
      FocusColor = 13824245
      FrameColor = 5607865
      FrameHotStyle = fsGroove
      FrameSides = [sdBottom]
      FrameVisible = True
      FramingPreference = fpCustomFraming
      TabOrder = 28
    end
    object cxDBTextEdit11: TRzDBEdit [19]
      Left = 286
      Top = 442
      Width = 120
      Height = 21
      DataSource = dsPrepay
      DataField = 'dsp_prepaybankaccount'
      FocusColor = 13824245
      FrameColor = 5607865
      FrameHotStyle = fsGroove
      FrameSides = [sdBottom]
      FrameVisible = True
      FramingPreference = fpCustomFraming
      TabOrder = 26
    end
    object cxDBMemo3: TRzDBMemo [20]
      Left = 656
      Top = 442
      Width = 120
      Height = 21
      DataField = 'dsp_prepayremark'
      DataSource = dsPrepay
      TabOrder = 31
      OnEnter = MemoEnter
      OnExit = MemoExit
      FocusColor = 13824245
      FrameColor = 5607865
      FrameHotStyle = fsGroove
      FrameSides = [sdBottom]
      FrameVisible = True
      FramingPreference = fpCustomFraming
    end
    object cxDBComboBox1: TRzDBComboBox [21]
      Left = 286
      Top = 100
      Width = 121
      Height = 21
      DataField = 'ds_type'
      DataSource = dsBase
      Ctl3D = False
      FlatButtonColor = 9229030
      FlatButtons = True
      FocusColor = 13824245
      FrameColor = 5607865
      FrameHotStyle = fsGroove
      FrameSides = [sdBottom]
      FrameVisible = True
      FramingPreference = fpCustomFraming
      ItemHeight = 13
      ParentCtl3D = False
      TabOrder = 10
      Items.Strings = (
        #35746#21333#37319#36141
        #24211#23384#37319#36141)
    end
    object cxDBTextEdit1: TRzDBEdit [22]
      Left = 286
      Top = 28
      Width = 121
      Height = 21
      DataSource = dsBase
      DataField = 'ds_no'
      ReadOnly = True
      Color = clInfoBk
      FocusColor = 13824245
      FrameColor = 5607865
      FrameHotStyle = fsGroove
      FrameSides = [sdBottom]
      FrameVisible = True
      FramingPreference = fpCustomFraming
      TabOrder = 6
    end
    object cxDBTextEdit2: TRzDBEdit [23]
      Left = 668
      Top = 52
      Width = 120
      Height = 21
      DataSource = dsBase
      DataField = 'ds_address'
      FocusColor = 13824245
      FrameColor = 5607865
      FrameHotStyle = fsGroove
      FrameSides = [sdBottom]
      FrameVisible = True
      FramingPreference = fpCustomFraming
      TabOrder = 18
    end
    object RzDBMemo1: TRzDBMemo [24]
      Left = 286
      Top = 52
      Width = 121
      Height = 21
      BevelEdges = []
      BevelInner = bvLowered
      BevelOuter = bvRaised
      DataField = 'ds_payment'
      DataSource = dsBase
      TabOrder = 7
      OnEnter = MemoEnter
      OnExit = MemoExit
      FocusColor = 13824245
      FrameColor = 5607865
      FrameHotStyle = fsGroove
      FrameSides = [sdBottom]
      FrameVisible = True
      FramingPreference = fpCustomFraming
    end
    object RzDBMemo2: TRzDBMemo [25]
      Left = 482
      Top = 466
      Width = 122
      Height = 21
      DataField = 'dsp_prepaypayment'
      DataSource = dsPrepay
      TabOrder = 30
      FocusColor = 13824245
      FrameColor = 5607865
      FrameHotStyle = fsGroove
      FrameSides = [sdBottom]
      FrameVisible = True
      FramingPreference = fpCustomFraming
    end
    object RzDBEdit3: TRzDBEdit [26]
      Left = 78
      Top = 100
      Width = 120
      Height = 21
      DataSource = dsBase
      DataField = 'ds_pino'
      FocusColor = 13824245
      FrameColor = 5607865
      FrameHotStyle = fsGroove
      FrameSides = [sdBottom]
      FrameVisible = True
      FramingPreference = fpCustomFraming
      TabOrder = 4
    end
    object cbxCompany: TRzDBComboBox [27]
      Left = 78
      Top = 28
      Width = 120
      Height = 21
      DataField = 'ds_osimpname'
      DataSource = dsBase
      Ctl3D = False
      FlatButtonColor = 9229030
      FlatButtons = True
      FocusColor = 13824245
      FrameColor = 5607865
      FrameHotStyle = fsGroove
      FrameSides = [sdBottom]
      FrameVisible = True
      FramingPreference = fpCustomFraming
      ItemHeight = 13
      ParentCtl3D = False
      TabOrder = 0
    end
    object RzDBMemo3: TRzDBMemo [28]
      Left = 471
      Top = 124
      Width = 121
      Height = 21
      DataField = 'ds_remark2'
      DataSource = dsBase
      TabOrder = 16
      OnEnter = MemoEnter
      OnExit = MemoExit
      FocusColor = 13824245
      FrameColor = 5607865
      FrameHotStyle = fsGroove
      FrameSides = [sdBottom]
      FrameVisible = True
      FramingPreference = fpCustomFraming
    end
    object cxDBDateEdit1: TRzDBDateTimeEdit [29]
      Left = 78
      Top = 76
      Width = 120
      Height = 21
      DataSource = dsBase
      DataField = 'ds_date'
      FocusColor = 13824245
      FrameColor = 5607865
      FrameHotStyle = fsGroove
      FrameSides = [sdBottom]
      FrameVisible = True
      FramingPreference = fpCustomFraming
      TabOrder = 3
      EditType = etDate
      FlatButtonColor = 9229030
      FlatButtons = True
    end
    inherited pcDetails: TcxPageControl
      Top = 182
      Width = 862
      TabOrder = 22
      ExplicitTop = 182
      ExplicitWidth = 862
      ClientRectRight = 862
      inherited cxTabSheet1: TcxTabSheet
        ExplicitWidth = 862
        ExplicitHeight = 223
        inherited grdDetails: TcxGrid
          Width = 862
          RootLevelOptions.DetailTabsPosition = dtpTop
          ExplicitWidth = 862
          inherited tvDetails: TcxGridDBBandedTableView
            DataController.Summary.FooterSummaryItems = <
              item
                Kind = skCount
                Column = tvDetailsColumn1
              end
              item
                Kind = skSum
                Column = tvDetailsColumnAmt
              end
              item
                Kind = skSum
              end
              item
                Kind = skSum
                Column = tvDetailsColumnQty
              end>
            object tvDetailsColumn1: TcxGridDBBandedColumn [0]
              Caption = '#'
              DataBinding.FieldName = 'dsi_serial'
              Visible = False
              Options.Editing = False
              Width = 38
              Position.BandIndex = 0
              Position.ColIndex = 0
              Position.RowIndex = 0
            end
            object tvDetailsColumn2: TcxGridDBBandedColumn [1]
              Caption = #20869#37096#32534#21495
              DataBinding.FieldName = 'dsi_productno'
              PropertiesClassName = 'TcxButtonEditProperties'
              Properties.Buttons = <
                item
                  Default = True
                  Kind = bkEllipsis
                end>
              Properties.OnButtonClick = tvDetailsColumn2PropertiesButtonClick
              Width = 120
              Position.BandIndex = 0
              Position.ColIndex = 1
              Position.RowIndex = 0
            end
            object tvDetailsColumn3: TcxGridDBBandedColumn [2]
              Caption = #20135#21697#21517#31216
              DataBinding.FieldName = 'dsi_productname'
              Width = 120
              Position.BandIndex = 0
              Position.ColIndex = 4
              Position.RowIndex = 0
            end
            object tvDetailsColumn4: TcxGridDBBandedColumn [3]
              DataBinding.FieldName = #26448#26009
              Visible = False
              Width = 120
              Position.BandIndex = 0
              Position.ColIndex = 5
              Position.RowIndex = 0
            end
            object tvDetailsColumn5: TcxGridDBBandedColumn [4]
              Caption = #33521#25991#21697#21517
              DataBinding.FieldName = 'dsi_productenname'
              Width = 102
              Position.BandIndex = 1
              Position.ColIndex = 2
              Position.RowIndex = 0
            end
            object tvDetailsBuyPrice: TcxGridDBBandedColumn [5]
              Caption = #37319#36141#21333#20215
              DataBinding.FieldName = 'dsi_buyprice'
              PropertiesClassName = 'TcxCurrencyEditProperties'
              Width = 74
              Position.BandIndex = 1
              Position.ColIndex = 7
              Position.RowIndex = 0
            end
            object tvDetailsColumnQty: TcxGridDBBandedColumn [6]
              Caption = #25968#37327
              DataBinding.FieldName = 'dsi_qty'
              Width = 60
              Position.BandIndex = 1
              Position.ColIndex = 5
              Position.RowIndex = 0
            end
            object tvDetailsColumn10: TcxGridDBBandedColumn [7]
              Caption = #21333#20301
              DataBinding.FieldName = 'dsi_unit'
              Width = 68
              Position.BandIndex = 1
              Position.ColIndex = 6
              Position.RowIndex = 0
            end
            object tvDetailsColumnAmt: TcxGridDBBandedColumn [8]
              Caption = #37319#36141#37329#39069
              DataBinding.FieldName = 'dsi_buyamt'
              PropertiesClassName = 'TcxCurrencyEditProperties'
              Width = 69
              Position.BandIndex = 1
              Position.ColIndex = 8
              Position.RowIndex = 0
            end
            object tvDetailsColumn13: TcxGridDBBandedColumn [9]
              Caption = #21830#26631
              DataBinding.FieldName = 'dsi_bland'
              PropertiesClassName = 'TcxButtonEditProperties'
              Properties.Buttons = <
                item
                  Default = True
                  Kind = bkEllipsis
                end>
              Properties.OnButtonClick = tvDetailsColumn13PropertiesButtonClick
              Width = 100
              Position.BandIndex = 1
              Position.ColIndex = 9
              Position.RowIndex = 0
            end
            object tvDetailsColumn15: TcxGridDBBandedColumn [10]
              Caption = #22791#27880
              DataBinding.FieldName = 'dsi_remark'
              Width = 86
              Position.BandIndex = 1
              Position.ColIndex = 10
              Position.RowIndex = 0
            end
            inherited tvDetailsColumnLast: TcxGridDBBandedColumn
              Position.BandIndex = 1
              Position.ColIndex = 11
              Position.RowIndex = 0
            end
            inherited tvDetailsOrder: TcxGridDBBandedColumn
              Position.ColIndex = 6
            end
            object tvDetailsColumn16: TcxGridDBBandedColumn
              Caption = #20135#21697#22411#21495
              DataBinding.FieldName = 'dsi_productrealno'
              Width = 82
              Position.BandIndex = 0
              Position.ColIndex = 3
              Position.RowIndex = 0
            end
            object tvDetailsColumn8: TcxGridDBBandedColumn
              Caption = #20013#25991#21697#21517
              DataBinding.FieldName = 'dsi_productcnname'
              Width = 80
              Position.BandIndex = 1
              Position.ColIndex = 1
              Position.RowIndex = 0
            end
            object tvDetailsColumn6: TcxGridDBBandedColumn
              Caption = #22411#21495#25551#36848
              DataBinding.FieldName = 'dsi_productdesc'
              Width = 80
              Position.BandIndex = 1
              Position.ColIndex = 0
              Position.RowIndex = 0
            end
            object tvDetailsColumn7: TcxGridDBBandedColumn
              Caption = #37319#36141#24065#21035
              DataBinding.FieldName = 'dsi_buymcode'
              Position.BandIndex = 1
              Position.ColIndex = 3
              Position.RowIndex = 0
            end
            object tvDetailsColumn9: TcxGridDBBandedColumn
              Caption = #27719#29575
              DataBinding.FieldName = 'dsi_buyrate'
              Position.BandIndex = 1
              Position.ColIndex = 4
              Position.RowIndex = 0
            end
            object tvDetailsColumn11: TcxGridDBBandedColumn
              Caption = '...'
              PropertiesClassName = 'TcxButtonEditProperties'
              Properties.Buttons = <
                item
                  Caption = #26597#30475
                  Default = True
                  Kind = bkText
                end>
              Properties.ViewStyle = vsButtonsOnly
              Properties.OnButtonClick = tvDetailsColumn11PropertiesButtonClick
              HeaderAlignmentHorz = taCenter
              Width = 40
              Position.BandIndex = 0
              Position.ColIndex = 2
              Position.RowIndex = 0
            end
          end
          object tvDetails2: TcxGridDBTableView [1]
            OnKeyDown = tvDetails2KeyDown
            Navigator.Buttons.CustomButtons = <>
            Navigator.Buttons.PriorPage.Visible = False
            Navigator.Buttons.NextPage.Visible = False
            Navigator.Buttons.Refresh.Visible = False
            Navigator.Buttons.SaveBookmark.Visible = False
            Navigator.Buttons.GotoBookmark.Visible = False
            Navigator.Buttons.Filter.Visible = False
            Navigator.Visible = True
            DataController.DataSource = dsDetails2
            DataController.Summary.DefaultGroupSummaryItems = <>
            DataController.Summary.FooterSummaryItems = <
              item
                Kind = skCount
                Column = tvDetails2FollowState
              end>
            DataController.Summary.SummaryGroups = <>
            OptionsView.NavigatorOffset = 0
            OptionsView.Footer = True
            OptionsView.GroupByBox = False
            OptionsView.Indicator = True
            OptionsView.IndicatorWidth = 30
            object tvDetails2FollowState: TcxGridDBColumn
              Caption = #36827#23637#36319#36394#29366#24577
              DataBinding.FieldName = 'dss_state'
              Width = 240
            end
            object tvDetails2Date: TcxGridDBColumn
              Caption = #26102#38388
              DataBinding.FieldName = 'dss_date'
              Width = 80
            end
            object tvDetails2Column4: TcxGridDBColumn
              Caption = #25805#20316#20154
              DataBinding.FieldName = 'dss_staff'
              Width = 70
            end
            object tvDetails2Column3: TcxGridDBColumn
              Caption = #22791#27880
              DataBinding.FieldName = 'dss_remark'
              Width = 240
            end
            object tvDetails2Column1: TcxGridDBColumn
              Caption = #38468#20214#21517
              DataBinding.FieldName = 'dss_filename'
              Options.Editing = False
              Width = 120
            end
            object tvDetails2Column2: TcxGridDBColumn
              Caption = #38468#20214#25805#20316
              PropertiesClassName = 'TcxButtonEditProperties'
              Properties.Buttons = <
                item
                  Caption = #28155#21152
                  Default = True
                  Kind = bkText
                end
                item
                  Caption = #21024#38500
                  Kind = bkText
                end
                item
                  Caption = #21478#23384#20026
                  Kind = bkText
                end
                item
                  Caption = #26597#30475
                  Kind = bkText
                end>
              Properties.ViewStyle = vsButtonsOnly
              Properties.OnButtonClick = tvDetails2Column2PropertiesButtonClick
              Options.ShowEditButtons = isebAlways
              Width = 160
            end
            object tvDetails2Last: TcxGridDBColumn
              Visible = False
            end
          end
          inherited lvDetails: TcxGridLevel
            Caption = #37319#36141#26126#32454
          end
          object lvDetails2: TcxGridLevel
            Caption = #37319#36141#36319#36394#20449#24687
            GridView = tvDetails2
          end
        end
      end
    end
    object RzDBEdit1: TRzDBEdit [31]
      Left = 471
      Top = 28
      Width = 121
      Height = 21
      DataSource = dsBase
      DataField = 'ds_projectno'
      ReadOnly = True
      Color = clInfoBk
      FocusColor = 13824245
      FrameColor = 5607865
      FrameHotStyle = fsGroove
      FrameSides = [sdBottom]
      FrameVisible = True
      FramingPreference = fpCustomFraming
      TabOrder = 12
    end
    object RzDBNumericEdit1: TRzDBNumericEdit [32]
      Left = 78
      Top = 466
      Width = 60
      Height = 21
      DataSource = dsPrepay
      DataField = 'dsp_amtrate'
      Alignment = taLeftJustify
      FocusColor = 13824245
      FrameColor = 5607865
      FrameHotStyle = fsGroove
      FrameSides = [sdBottom]
      FrameVisible = True
      FramingPreference = fpCustomFraming
      TabOrder = 24
      IntegersOnly = False
      DisplayFormat = ',0.00;(,0.00)'
    end
    object RzDBNumericEdit2: TRzDBNumericEdit [33]
      Left = 141
      Top = 466
      Width = 57
      Height = 21
      DataSource = dsPrepay
      DataField = 'dsp_prepaypreamt'
      Alignment = taLeftJustify
      FocusColor = 13824245
      FrameColor = 5607865
      FrameHotStyle = fsGroove
      FrameSides = [sdBottom]
      FrameVisible = True
      FramingPreference = fpCustomFraming
      TabOrder = 25
      IntegersOnly = False
      DisplayFormat = ',0.00;(,0.00)'
    end
    object RzDBEdit2: TRzDBEdit [34]
      Left = 668
      Top = 100
      Width = 120
      Height = 21
      DataSource = dsBase
      DataField = 'ds_delidesc'
      FocusColor = 13824245
      FrameColor = 5607865
      FrameHotStyle = fsGroove
      FrameSides = [sdBottom]
      FrameVisible = True
      FramingPreference = fpCustomFraming
      TabOrder = 20
    end
    object RzDBEdit4: TRzDBEdit [35]
      Left = 471
      Top = 100
      Width = 121
      Height = 21
      DataSource = dsBase
      DataField = 'ds_productcountry'
      FocusColor = 13824245
      FrameColor = 5607865
      FrameHotStyle = fsGroove
      FrameSides = [sdBottom]
      FrameVisible = True
      FramingPreference = fpCustomFraming
      TabOrder = 15
    end
    object cbxPriceTerm: TRzDBComboBox [36]
      Left = 668
      Top = 76
      Width = 120
      Height = 21
      DataField = 'ds_priceterm'
      DataSource = dsBase
      Ctl3D = False
      FlatButtonColor = 9229030
      FlatButtons = True
      FocusColor = 13824245
      FrameColor = 5607865
      FrameHotStyle = fsGroove
      FrameSides = [sdBottom]
      FrameVisible = True
      FramingPreference = fpCustomFraming
      ItemHeight = 13
      ParentCtl3D = False
      TabOrder = 19
      OnDropDown = cbxPriceTermDropDown
    end
    object RzDBEdit5: TRzDBEdit [37]
      Left = 78
      Top = 124
      Width = 120
      Height = 21
      DataSource = dsBase
      DataField = 'ds_batchno'
      FocusColor = 13824245
      FrameColor = 5607865
      FrameHotStyle = fsGroove
      FrameSides = [sdBottom]
      FrameVisible = True
      FramingPreference = fpCustomFraming
      TabOrder = 5
    end
    object RzDBEdit6: TRzDBEdit [38]
      Left = 668
      Top = 28
      Width = 120
      Height = 21
      DataSource = dsBase
      DataField = 'ds_title'
      FocusColor = 13824245
      FrameColor = 5607865
      FrameHotStyle = fsGroove
      FrameSides = [sdBottom]
      FrameVisible = True
      FramingPreference = fpCustomFraming
      TabOrder = 17
    end
    inherited lcgRoot: TdxLayoutGroup
      Index = -1
    end
    inherited lcgBaseInfoNormal: TdxLayoutGroup
      Index = 0
    end
    inherited lcgBaseInfoLeft: TdxLayoutGroup
      CaptionOptions.Visible = False
      ShowBorder = False
      Index = 0
    end
    inherited lcgBaseInfoMiddle: TdxLayoutGroup
      CaptionOptions.Visible = False
      ShowBorder = False
      Index = 1
    end
    inherited lcgBaseInfoRight: TdxLayoutGroup
      CaptionOptions.Visible = False
      ShowBorder = False
      Index = 2
    end
    inherited lcgBaseInfoLast: TdxLayoutGroup
      Index = 3
    end
    inherited lcgDetails: TdxLayoutGroup
      Index = 1
    end
    inherited lcpcDetails: TdxLayoutItem
      Index = 0
    end
    inherited lcgArchive: TdxLayoutGroup
      Index = 3
    end
    inherited lcArchive2: TdxLayoutGroup
      Index = 2
    end
    inherited lcitemModifyStaff: TdxLayoutItem
      Index = 0
    end
    inherited lcitemModifyDate: TdxLayoutItem
      Index = 1
    end
    inherited lcgArchive1: TdxLayoutGroup
      Index = 3
    end
    inherited lcitemCreateStaff: TdxLayoutItem
      Index = 0
    end
    inherited lcitemCreateDate: TdxLayoutItem
      Index = 1
    end
    object lcMainItem29: TdxLayoutItem
      CaptionOptions.Text = #20844#21496
      LayoutLookAndFeel = dmImages.lfMust
      Parent = lcgBaseInfoLeft
      Control = cbxCompany
      ControlOptions.ShowBorder = False
      Index = 0
    end
    object lcMainGroup1: TdxLayoutGroup
      CaptionOptions.Text = 'Hidden Group'
      CaptionOptions.Visible = False
      Parent = lcgBaseInfoLeft
      ButtonOptions.Buttons = <>
      Hidden = True
      LayoutDirection = ldHorizontal
      ShowBorder = False
      Index = 1
    end
    object lcMainItem5: TdxLayoutItem
      AlignHorz = ahLeft
      CaptionOptions.Text = #24037#21378
      LayoutLookAndFeel = dmImages.lfBaseInfo
      Parent = lcMainGroup1
      Control = edtFactory
      ControlOptions.ShowBorder = False
      OnCaptionClick = lcMainItem5CaptionClick
      Index = 0
    end
    object lcMainItem6: TdxLayoutItem
      AlignHorz = ahClient
      Parent = lcMainGroup1
      Control = cxDBTextEdit4
      ControlOptions.ShowBorder = False
      Index = 1
    end
    object lcMainItem2: TdxLayoutItem
      CaptionOptions.Text = #21512#21516#26085#26399
      Parent = lcgBaseInfoLeft
      Control = cxDBDateEdit1
      ControlOptions.ShowBorder = False
      Index = 2
    end
    object lcMainItem28: TdxLayoutItem
      CaptionOptions.Text = #38144#21806#35746#21333#21495
      LayoutLookAndFeel = dmImages.lfBaseInfo
      Parent = lcgBaseInfoLeft
      Control = RzDBEdit3
      ControlOptions.ShowBorder = False
      OnCaptionClick = lcMainItem28CaptionClick
      Index = 3
    end
    object lcMainItem33: TdxLayoutItem
      CaptionOptions.Text = #25209#21495
      Parent = lcgBaseInfoLeft
      Control = RzDBEdit5
      ControlOptions.ShowBorder = False
      Index = 4
    end
    object lcMainItem1: TdxLayoutItem
      CaptionOptions.Text = #21512#21516#21333#21495
      LayoutLookAndFeel = dmImages.lfMust
      Parent = lcgBaseInfoMiddle
      Control = cxDBTextEdit1
      ControlOptions.ShowBorder = False
      Index = 0
    end
    object lcMainItem26: TdxLayoutItem
      CaptionOptions.Text = #20184#27454#26041#24335
      LayoutLookAndFeel = dmImages.lfBaseInfo
      Parent = lcgBaseInfoMiddle
      Control = RzDBMemo1
      OnCaptionClick = lcMainItem26CaptionClick
      Index = 1
    end
    object lcMainGroup2: TdxLayoutGroup
      CaptionOptions.Text = 'Hidden Group'
      CaptionOptions.Visible = False
      Parent = lcgBaseInfoMiddle
      ButtonOptions.Buttons = <>
      Hidden = True
      LayoutDirection = ldHorizontal
      ShowBorder = False
      Index = 2
    end
    object lcMainItem11: TdxLayoutItem
      AlignHorz = ahLeft
      CaptionOptions.Text = #24065#21035
      LayoutLookAndFeel = dmImages.lfMust
      Parent = lcMainGroup2
      Control = cbxCurrency
      ControlOptions.ShowBorder = False
      Index = 0
    end
    object lcMainItem12: TdxLayoutItem
      AlignHorz = ahClient
      Parent = lcMainGroup2
      Control = cxDBTextEdit7
      ControlOptions.ShowBorder = False
      Index = 1
    end
    object lcMainItem7: TdxLayoutItem
      CaptionOptions.Text = #37319#36141#21333#31867#22411
      Parent = lcgBaseInfoMiddle
      Control = cxDBComboBox1
      ControlOptions.ShowBorder = False
      Index = 3
    end
    object lcMainItem15: TdxLayoutItem
      AlignHorz = ahClient
      CaptionOptions.Text = #22791#27880
      Parent = lcgBaseInfoMiddle
      Control = cxDBMemo1
      ControlOptions.ShowBorder = False
      Index = 4
    end
    object lcMainItem3: TdxLayoutItem
      CaptionOptions.Text = #39033#30446
      LayoutLookAndFeel = dmImages.lfBaseInfo
      Parent = lcgBaseInfoRight
      Control = RzDBEdit1
      ControlOptions.ShowBorder = False
      OnCaptionClick = lcMainItem3CaptionClick
      Index = 0
    end
    object lcMainItem10: TdxLayoutItem
      CaptionOptions.Text = #37319#36141#21592
      LayoutLookAndFeel = dmImages.lfMust
      Parent = lcgBaseInfoRight
      Control = cbxStockStaff
      ControlOptions.ShowBorder = False
      Index = 1
    end
    object lcMainItem9: TdxLayoutItem
      CaptionOptions.Text = #19994#21153#21592
      Parent = lcgBaseInfoRight
      Control = cbxStaff
      ControlOptions.ShowBorder = False
      Index = 2
    end
    object lcMainItem31: TdxLayoutItem
      CaptionOptions.Text = #21407#20135#22269
      Parent = lcgBaseInfoRight
      Control = RzDBEdit4
      ControlOptions.ShowBorder = False
      Index = 3
    end
    object lcMainItem30: TdxLayoutItem
      CaptionOptions.Text = #22791#27880#20108
      Parent = lcgBaseInfoRight
      Control = RzDBMemo3
      Index = 4
    end
    object lcMainItem34: TdxLayoutItem
      CaptionOptions.Text = #25688#35201
      Parent = lcgBaseInfoLast
      Control = RzDBEdit6
      ControlOptions.ShowBorder = False
      Index = 0
    end
    object lcMainItem4: TdxLayoutItem
      CaptionOptions.Text = #31614#32422#22320#28857
      Parent = lcgBaseInfoLast
      Control = cxDBTextEdit2
      ControlOptions.ShowBorder = False
      Index = 1
    end
    object lcMainItem32: TdxLayoutItem
      CaptionOptions.Text = #20215#26684#26465#27454
      Parent = lcgBaseInfoLast
      Control = cbxPriceTerm
      ControlOptions.ShowBorder = False
      Index = 2
    end
    object lcMainGroup6: TdxLayoutGroup
      CaptionOptions.Text = 'Hidden Group'
      Parent = lcgBaseInfoLast
      ButtonOptions.Buttons = <>
      Hidden = True
      ShowBorder = False
      Index = 3
    end
    object lcMainItem25: TdxLayoutItem
      CaptionOptions.Text = #20132#36135#26399
      Parent = lcMainGroup6
      Control = RzDBEdit2
      ControlOptions.ShowBorder = False
      Index = 0
    end
    object lcMainItem16: TdxLayoutItem
      CaptionOptions.Text = #34920#23614#26465#27454
      Parent = lcMainGroup6
      Control = cxDBMemo2
      ControlOptions.ShowBorder = False
      Index = 1
    end
    object lcgPrePay: TdxLayoutGroup
      CaptionOptions.Text = #39044#20184#27454
      LayoutLookAndFeel = dmImages.lfBaseInfoGroups
      Parent = lcgRoot
      ButtonOptions.Buttons = <>
      LayoutDirection = ldHorizontal
      OnCaptionClick = lcgBaseInfoCaptionClick
      Index = 2
    end
    object lcgPrepayLeft: TdxLayoutGroup
      AlignVert = avClient
      CaptionOptions.Visible = False
      Parent = lcgPrePay
      ButtonOptions.Buttons = <>
      ShowBorder = False
      Index = 0
    end
    object lcMainItem18: TdxLayoutItem
      CaptionOptions.Text = #20184#27454#26085#26399
      Parent = lcgPrepayLeft
      Control = cxDBDateEdit3
      ControlOptions.ShowBorder = False
      Index = 0
    end
    object lcMainGroup5: TdxLayoutGroup
      CaptionOptions.Text = 'Hidden Group'
      Parent = lcgPrepayLeft
      ButtonOptions.Buttons = <>
      Hidden = True
      LayoutDirection = ldHorizontal
      ShowBorder = False
      Index = 1
    end
    object lcMainItem23: TdxLayoutItem
      AlignHorz = ahLeft
      CaptionOptions.Text = #39044#20184#27604#20363'(%)'
      Parent = lcMainGroup5
      Control = RzDBNumericEdit1
      ControlOptions.ShowBorder = False
      Index = 0
    end
    object lcMainItem17: TdxLayoutItem
      AlignHorz = ahClient
      Parent = lcMainGroup5
      Control = RzDBNumericEdit2
      ControlOptions.ShowBorder = False
      Index = 1
    end
    object lcgPrepayMiddle: TdxLayoutGroup
      AlignVert = avClient
      CaptionOptions.Visible = False
      Offsets.Left = 20
      Parent = lcgPrePay
      ButtonOptions.Buttons = <>
      ShowBorder = False
      Index = 1
    end
    object lcMainItem22: TdxLayoutItem
      CaptionOptions.Text = #20184#27454#24080#21495
      Parent = lcgPrepayMiddle
      Control = cxDBTextEdit11
      ControlOptions.ShowBorder = False
      Index = 0
    end
    object lcMainGroup3: TdxLayoutGroup
      CaptionOptions.Text = 'Hidden Group'
      CaptionOptions.Visible = False
      Parent = lcgPrepayMiddle
      ButtonOptions.Buttons = <>
      Hidden = True
      LayoutDirection = ldHorizontal
      ShowBorder = False
      Index = 1
    end
    object lcMainItem20: TdxLayoutItem
      AlignHorz = ahLeft
      CaptionOptions.Text = #20184#27454#38134#34892
      Parent = lcMainGroup3
      Control = cxDBComboBox5
      ControlOptions.ShowBorder = False
      Index = 0
    end
    object lcMainItem21: TdxLayoutItem
      AlignHorz = ahClient
      Parent = lcMainGroup3
      Control = cxDBTextEdit10
      ControlOptions.ShowBorder = False
      Index = 1
    end
    object lcgPrepayRight: TdxLayoutGroup
      AlignVert = avClient
      CaptionOptions.Visible = False
      Offsets.Left = 20
      Parent = lcgPrePay
      ButtonOptions.Buttons = <>
      ShowBorder = False
      Index = 2
    end
    object lcMainItem19: TdxLayoutItem
      CaptionOptions.Text = #20184#27454#20154#21592
      Parent = lcgPrepayRight
      Control = cxDBComboBox4
      ControlOptions.ShowBorder = False
      Index = 0
    end
    object lcMainItem27: TdxLayoutItem
      CaptionOptions.Text = #20184#27454#26041#24335
      LayoutLookAndFeel = dmImages.lfBaseInfo
      Parent = lcgPrepayRight
      Control = RzDBMemo2
      OnCaptionClick = lcMainItem27CaptionClick
      Index = 1
    end
    object lcgPrepayLast: TdxLayoutGroup
      CaptionOptions.Visible = False
      Offsets.Left = 20
      Parent = lcgPrePay
      ButtonOptions.Buttons = <>
      ShowBorder = False
      Index = 3
    end
    object lcMainItem24: TdxLayoutItem
      CaptionOptions.Text = #22791#27880
      Parent = lcgPrepayLast
      Control = cxDBMemo3
      ControlOptions.ShowBorder = False
      Index = 0
    end
    object lcMainItem14: TdxLayoutItem
      CaptionOptions.Text = #23457#25209#29366#24577
      Parent = lcgArchive
      Control = RzDBLabel1
      ControlOptions.AutoColor = True
      ControlOptions.ShowBorder = False
      Index = 1
    end
    object lcMainGroup4: TdxLayoutGroup
      CaptionOptions.Text = 'Hidden Group'
      Parent = lcgArchive
      ButtonOptions.Buttons = <>
      Hidden = True
      ShowBorder = False
      Index = 0
    end
    object lcMainItem13: TdxLayoutItem
      CaptionOptions.Text = #23457'  '#25209'  '#20154
      Parent = lcMainGroup4
      Control = cxDBLabel2
      ControlOptions.ShowBorder = False
      Index = 0
    end
    object lcMainItem8: TdxLayoutItem
      CaptionOptions.Text = #23457#25209#26085#26399
      Parent = lcMainGroup4
      Control = cxDBLabel1
      ControlOptions.ShowBorder = False
      Index = 1
    end
  end
  inherited pnlRight: TPanel
    Left = 692
    Height = 606
    ExplicitLeft = 692
    ExplicitHeight = 606
    inherited frameAttachs: TfrmAttachs
      Height = 606
      ExplicitHeight = 606
      inherited lvAttachs: TcxListView
        Height = 580
        ExplicitHeight = 580
      end
      inherited bmAttachs: TdxBarManager
        DockControlHeights = (
          0
          0
          26
          0)
      end
    end
  end
  inherited dxStatusBar1: TdxStatusBar
    Top = 632
    Width = 892
    ExplicitTop = 632
    ExplicitWidth = 892
  end
  inherited BarManager: TdxBarManager
    DockControlHeights = (
      0
      0
      26
      0)
    inherited BarMain: TdxBar
      ItemLinks = <
        item
          Visible = True
          ItemName = 'bbtnNew'
        end
        item
          Visible = True
          ItemName = 'bbtnEdit'
        end
        item
          BeginGroup = True
          Visible = True
          ItemName = 'bbtnCopy'
        end
        item
          Visible = True
          ItemName = 'bbtnRefresh'
        end
        item
          Visible = True
          ItemName = 'bbtnDelete'
        end
        item
          BeginGroup = True
          UserDefine = [udPaintStyle]
          UserPaintStyle = psCaptionGlyph
          Visible = True
          ItemName = 'bbtnSave'
        end
        item
          Visible = True
          ItemName = 'bbtnCancel'
        end
        item
          BeginGroup = True
          UserDefine = [udPaintStyle]
          Visible = True
          ItemName = 'bbtnFirst'
        end
        item
          Visible = True
          ItemName = 'bbtnPrev'
        end
        item
          Visible = True
          ItemName = 'bbtnNext'
        end
        item
          UserDefine = [udPaintStyle]
          Visible = True
          ItemName = 'bbtnLast'
        end
        item
          BeginGroup = True
          UserDefine = [udPaintStyle]
          UserPaintStyle = psCaptionGlyph
          Visible = True
          ItemName = 'bbtnPrint'
        end
        item
          BeginGroup = True
          UserDefine = [udPaintStyle]
          UserPaintStyle = psCaptionGlyph
          Visible = True
          ItemName = 'bbtnAttach'
        end
        item
          BeginGroup = True
          Visible = True
          ItemName = 'bbtnPrepay'
        end
        item
          BeginGroup = True
          UserDefine = [udPaintStyle]
          UserPaintStyle = psCaptionGlyph
          Visible = True
          ItemName = 'bbtnCheckRequest'
        end
        item
          UserDefine = [udPaintStyle]
          UserPaintStyle = psCaptionGlyph
          Visible = True
          ItemName = 'bbtnCheck'
        end
        item
          BeginGroup = True
          UserDefine = [udPaintStyle]
          UserPaintStyle = psCaptionGlyph
          Visible = True
          ItemName = 'bbtnRemind'
        end>
    end
    object bbtnPrepay: TdxBarButton
      Caption = #39044#20184#27454
      Category = 0
      Hint = #39044#20184#27454
      Visible = ivAlways
      ButtonStyle = bsChecked
      Down = True
      ImageIndex = 252
      PaintStyle = psCaptionGlyph
      OnClick = bbtnPrepayClick
    end
    object bbtnCheckRequest: TdxBarButton
      Caption = #30003#35831#23457#25209
      Category = 0
      Hint = #30003#35831#23457#25209
      Visible = ivAlways
      ImageIndex = 167
      OnClick = bbtnCheckRequestClick
    end
    object bbtnCheck: TdxBarButton
      Caption = #23457#25209
      Category = 0
      Hint = #23457#25209
      Visible = ivAlways
      ImageIndex = 225
      OnClick = bbtnCheckClick
    end
    object bbtnRemind: TdxBarButton
      Caption = #25552#37266
      Category = 0
      Hint = #25552#37266
      Visible = ivAlways
      ImageIndex = 217
      OnClick = bbtnRemindClick
    end
  end
  inherited tblBase: TDAMemDataTable
    Fields = <
      item
        Name = 'ds_id'
        DataType = datGuid
        Required = True
        InPrimaryKey = True
      end
      item
        Name = 'ds_no'
        DataType = datString
        Size = 20
      end
      item
        Name = 'ds_piid'
        DataType = datGuid
      end
      item
        Name = 'ds_pino'
        DataType = datString
        Size = 30
      end
      item
        Name = 'ds_date'
        DataType = datDateTime
      end
      item
        Name = 'ds_state'
        DataType = datString
        Size = 30
      end
      item
        Name = 'ds_address'
        DataType = datString
        Size = 30
      end
      item
        Name = 'ds_fid'
        DataType = datGuid
        Required = True
      end
      item
        Name = 'ds_fno'
        DataType = datString
        Size = 30
      end
      item
        Name = 'ds_fsimpname'
        DataType = datString
        Size = 30
      end
      item
        Name = 'ds_staff'
        DataType = datString
        Size = 30
      end
      item
        Name = 'ds_staffid'
        DataType = datGuid
      end
      item
        Name = 'ds_staffiid'
        DataType = datInteger
      end
      item
        Name = 'ds_mcode'
        DataType = datString
        Size = 10
      end
      item
        Name = 'ds_rate'
        DataType = datFloat
      end
      item
        Name = 'ds_amt'
        DataType = datFloat
      end
      item
        Name = 'ds_qty'
        DataType = datFloat
      end
      item
        Name = 'ds_gw'
        DataType = datFloat
      end
      item
        Name = 'ds_priceterm'
        DataType = datString
        Size = 120
      end
      item
        Name = 'ds_payment'
        DataType = datString
        Size = 120
      end
      item
        Name = 'ds_shipway'
        DataType = datString
        Size = 30
      end
      item
        Name = 'ds_type'
        DataType = datString
        Size = 30
      end
      item
        Name = 'ds_deliarea'
        DataType = datString
        Size = 30
      end
      item
        Name = 'ds_delidate'
        DataType = datDateTime
      end
      item
        Name = 'ds_delidesc'
        DataType = datString
        Size = 120
      end
      item
        Name = 'ds_productname'
        DataType = datString
        Size = 60
      end
      item
        Name = 'ds_stockstaff'
        DataType = datString
        Size = 30
      end
      item
        Name = 'ds_productcountry'
        DataType = datString
        Size = 30
      end
      item
        Name = 'ds_createstaff'
        DataType = datString
        Size = 30
      end
      item
        Name = 'ds_createdate'
        DataType = datDateTime
      end
      item
        Name = 'ds_modifystaff'
        DataType = datString
        Size = 30
      end
      item
        Name = 'ds_modifydate'
        DataType = datDateTime
      end
      item
        Name = 'ds_remark'
        DataType = datString
        Size = 500
      end
      item
        Name = 'ds_remark2'
        DataType = datString
        Size = 500
      end
      item
        Name = 'ds_title'
        DataType = datString
        Size = 120
      end
      item
        Name = 'ds_cont'
        DataType = datMemo
      end
      item
        Name = 'ds_checkrequeststaff'
        DataType = datString
        Size = 30
      end
      item
        Name = 'ds_checkrequestid'
        DataType = datGuid
      end
      item
        Name = 'ds_checkstaff'
        DataType = datString
        Size = 30
      end
      item
        Name = 'ds_batchno'
        DataType = datString
        Size = 30
      end
      item
        Name = 'ds_checkdate'
        DataType = datDateTime
      end
      item
        Name = 'ds_oid'
        DataType = datGuid
      end
      item
        Name = 'ds_oiid'
        DataType = datInteger
      end
      item
        Name = 'ds_osimpname'
        DataType = datString
        Size = 30
      end
      item
        Name = 'ds_followstate'
        DataType = datString
        Size = 120
      end
      item
        Name = 'ds_followdate'
        DataType = datDateTime
      end
      item
        Name = 'ds_projectno'
        DataType = datString
        Size = 20
      end
      item
        Name = 'ds_projectid'
        DataType = datGuid
      end>
    LogicalName = 'd_stock'
    Left = 294
    Top = 240
  end
  inherited dsBase: TDADataSource
    DataSet = tblBase.Dataset
    Left = 336
    Top = 240
  end
  inherited tblDetails: TDAMemDataTable
    Fields = <
      item
        Name = 'dsi_sid'
        DataType = datGuid
        Required = True
        InPrimaryKey = True
      end
      item
        Name = 'dsi_serial'
        DataType = datFloat
        Required = True
        InPrimaryKey = True
      end
      item
        Name = 'dsi_productid'
        DataType = datGuid
        Required = True
      end
      item
        Name = 'dsi_productno'
        DataType = datString
        Size = 30
      end
      item
        Name = 'dsi_productrealno'
        DataType = datString
        Size = 120
      end
      item
        Name = 'dsi_productname'
        DataType = datString
        Size = 120
      end
      item
        Name = 'dsi_productcnname'
        DataType = datString
        Size = 120
      end
      item
        Name = 'dsi_productenname'
        DataType = datString
        Size = 120
      end
      item
        Name = 'dsi_productdesc'
        DataType = datString
        Size = 240
      end
      item
        Name = 'dsi_buyprice'
        DataType = datFloat
        OnValidate = tblDetailsdsi_buypriceValidate
      end
      item
        Name = 'dsi_buymcode'
        DataType = datString
        Size = 10
      end
      item
        Name = 'dsi_buyrate'
        DataType = datFloat
      end
      item
        Name = 'dsi_qty'
        DataType = datFloat
        OnValidate = tblDetailsdsi_qtyValidate
      end
      item
        Name = 'dsi_unit'
        DataType = datString
        Size = 10
      end
      item
        Name = 'dsi_buyamt'
        DataType = datFloat
      end
      item
        Name = 'dsi_bland'
        DataType = datString
        Size = 30
      end
      item
        Name = 'dsi_remark'
        DataType = datString
        Size = 60
      end
      item
        Name = 'dsi_order'
        DataType = datInteger
      end
      item
        Name = 'dsi_customerpno'
        DataType = datString
        Size = 30
      end
      item
        Name = 'dsi_inqty'
        DataType = datFloat
      end
      item
        Name = 'dsi_id'
        DataType = datAutoInc
      end>
    MasterMappingMode = mmWhere
    MasterSource = dsBase
    MasterFields = 'ds_id'
    DetailFields = 'dsi_sid'
    LogicalName = 'd_stockitem'
    Left = 184
    Top = 262
  end
  inherited dsDetails: TDADataSource
    DataSet = tblDetails.Dataset
    Left = 152
    Top = 262
  end
  inherited cxEditStyleController1: TcxEditStyleController
    PixelsPerInch = 96
  end
  inherited cxStyleRepository2: TcxStyleRepository
    PixelsPerInch = 96
  end
  inherited cxStyleRepository3: TcxStyleRepository
    PixelsPerInch = 96
  end
  object tblPrepay: TDAMemDataTable
    RemoteUpdatesOptions = []
    Fields = <
      item
        Name = 'dsp_pid'
        DataType = datGuid
        Required = True
        InPrimaryKey = True
      end
      item
        Name = 'dsp_accountid'
        DataType = datGuid
      end
      item
        Name = 'dsp_prepaypreamt'
        DataType = datFloat
      end
      item
        Name = 'dsp_prepaypayment'
        DataType = datString
        Size = 120
      end
      item
        Name = 'dsp_prepaydate'
        DataType = datDateTime
      end
      item
        Name = 'dsp_prepaystaff'
        DataType = datString
        Size = 30
      end
      item
        Name = 'dsp_prepaystaffid'
        DataType = datGuid
      end
      item
        Name = 'dsp_bid'
        DataType = datGuid
      end
      item
        Name = 'dsp_prepaybankno'
        DataType = datString
        Size = 10
      end
      item
        Name = 'dsp_prepaybank'
        DataType = datString
        Size = 60
      end
      item
        Name = 'dsp_prepaybankaccount'
        DataType = datString
        Size = 30
      end
      item
        Name = 'dsp_prepayremark'
        DataType = datString
        Size = 200
      end
      item
        Name = 'dsp_amtrate'
        DataType = datFloat
      end>
    Params = <>
    MasterMappingMode = mmWhere
    StreamingOptions = [soDisableEventsWhileStreaming]
    RemoteDataAdapter = ClientDataModule.RemoteDataAdapter
    BeforeInsert = tblPrepayBeforeInsert
    BeforeEdit = tblPrepayBeforeEdit
    BeforePost = tblPrepayBeforePost
    OnNewRecord = tblPrepayNewRecord
    MasterSource = dsBase
    MasterFields = 'ds_id'
    DetailFields = 'dsp_pid'
    DetailOptions = [dtCascadeOpenClose, dtCascadeApplyUpdates, dtAutoFetch, dtCascadeDelete, dtCascadeUpdate, dtDisableLogOfCascadeDeletes, dtDisableLogOfCascadeUpdates, dtIncludeInAllInOneFetch]
    MasterOptions = [moCascadeOpenClose, moCascadeApplyUpdates, moCascadeDelete, moCascadeUpdate, moDisableLogOfCascadeDeletes, moDisableLogOfCascadeUpdates]
    LogicalName = 'd_stockprepay'
    IndexDefs = <>
    Left = 298
    Top = 506
  end
  object dsPrepay: TDADataSource
    DataSet = tblPrepay.Dataset
    DataTable = tblPrepay
    Left = 330
    Top = 506
  end
  object dsDetails2: TDADataSource
    DataSet = tblDetails2.Dataset
    DataTable = tblDetails2
    Left = 152
    Top = 296
  end
  object tblDetails2: TDAMemDataTable
    RemoteUpdatesOptions = []
    Fields = <
      item
        Name = 'dss_pid'
        DataType = datGuid
        Required = True
        InPrimaryKey = True
      end
      item
        Name = 'dss_serial'
        DataType = datInteger
        Required = True
        InPrimaryKey = True
      end
      item
        Name = 'dss_state'
        DataType = datString
        Size = 4000
      end
      item
        Name = 'dss_billtype'
        DataType = datString
        Size = 20
      end
      item
        Name = 'dss_billid'
        DataType = datGuid
      end
      item
        Name = 'dss_billno'
        DataType = datString
        Size = 20
      end
      item
        Name = 'dss_date'
        DataType = datDateTime
      end
      item
        Name = 'dss_remark'
        DataType = datString
        Size = 120
      end
      item
        Name = 'dss_filename'
        DataType = datString
        Size = 240
      end
      item
        Name = 'dss_fileext'
        DataType = datString
        Size = 30
      end
      item
        Name = 'dss_staff'
        DataType = datString
        Size = 30
      end>
    Params = <>
    MasterMappingMode = mmWhere
    StreamingOptions = [soDisableEventsWhileStreaming]
    RemoteDataAdapter = ClientDataModule.RemoteDataAdapter
    BeforeInsert = tblDetails2BeforeInsert
    BeforeEdit = tblDetails2BeforeEdit
    AfterPost = tblDetails2AfterPost
    BeforeDelete = tblDetails2BeforeDelete
    OnNewRecord = tblDetails2NewRecord
    MasterSource = dsBase
    MasterFields = 'ds_id'
    DetailFields = 'dss_pid'
    DetailOptions = [dtCascadeOpenClose, dtCascadeApplyUpdates, dtAutoFetch, dtCascadeDelete, dtCascadeUpdate, dtDisableLogOfCascadeDeletes, dtDisableLogOfCascadeUpdates, dtIncludeInAllInOneFetch]
    MasterOptions = [moCascadeOpenClose, moCascadeApplyUpdates, moCascadeDelete, moCascadeUpdate, moDisableLogOfCascadeDeletes, moDisableLogOfCascadeUpdates]
    LogicalName = 'd_stockstate'
    IndexDefs = <>
    Left = 186
    Top = 298
  end
  object tblBrowser: TDAMemDataTable
    RemoteUpdatesOptions = [ruoOnPost]
    Fields = <
      item
        Name = 'dss_pid'
        DataType = datGuid
        Required = True
        InPrimaryKey = True
      end
      item
        Name = 'dss_serial'
        DataType = datInteger
        Required = True
        InPrimaryKey = True
      end
      item
        Name = 'dss_filename'
        DataType = datString
        Size = 240
      end
      item
        Name = 'dss_fileext'
        DataType = datString
        Size = 30
      end
      item
        Name = 'dss_file'
        DataType = datBlob
      end>
    Params = <>
    StreamingOptions = [soDisableEventsWhileStreaming]
    RemoteDataAdapter = ClientDataModule.RemoteDataAdapter
    DetailOptions = [dtCascadeOpenClose, dtCascadeApplyUpdates, dtAutoFetch, dtCascadeDelete, dtCascadeUpdate, dtDisableLogOfCascadeDeletes, dtDisableLogOfCascadeUpdates, dtIncludeInAllInOneFetch]
    MasterOptions = [moCascadeOpenClose, moCascadeApplyUpdates, moCascadeDelete, moCascadeUpdate, moDisableLogOfCascadeDeletes, moDisableLogOfCascadeUpdates]
    LogicalName = 'd_stockstate1'
    IndexDefs = <>
    Left = 524
    Top = 280
  end
  object odlgAttachs: TRzOpenDialog
    Left = 560
    Top = 310
  end
  object sdlgAttachs: TRzSaveDialog
    Left = 596
    Top = 310
  end
end
